﻿using System;
using Token.Piker.BLL;
using System.Web.UI.WebControls;

namespace Token.Piker.Web.Admin.NewsAlbum
{
    public partial class ShowPhoto : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindData();
        }

        private void BindData()
        {
            if (!string.IsNullOrEmpty(Request.Params["ID"]))
            {
                int id = int.Parse(Request.Params["ID"]);
                NewsPhotoBLL bll = new NewsPhotoBLL();
                datalist.DataSource = bll.GetList("Album = " + id);
                datalist.DataBind();
            }
        }
    }
}